<template>
  <div>
    <!-- 导航 -->
    <el-row class="tac">
      <el-col :span="24">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
        >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>前台收银</span>
            </template>
            <el-menu-item index="1-1">
              <router-link to="/hascard">有卡消费</router-link>
            </el-menu-item>
            <el-menu-item index="1-2">
              <router-link to="/nocard">无卡消费</router-link>
            </el-menu-item>
          </el-submenu>
          <el-menu-item index="2">
            <i class="el-icon-s-tools"></i>
            <span slot="title">
              <router-link to="/kaxiangguanli">卡项管理</router-link>
            </span>
          </el-menu-item>
          <el-menu-item index="3" disabled>
            <i class="el-icon-document"></i>
            <span slot="title">
              <router-link to="/caiwu">财务</router-link>
            </span>
          </el-menu-item>
          <el-menu-item index="4">
            <i class="el-icon-setting"></i>
            <span slot="title">
              <router-link to="/dianwu">店务</router-link>
            </span>
          </el-menu-item>
          <el-menu-item index="4">
            <i class="el-icon-setting"></i>
            <span slot="title">
              <router-link to="/lifaxueyuan">理发学院</router-link>
            </span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "CeNav",
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
};
</script>

<style></style>
